<?php
/**
 * Taxonomy product cat
 * @package WOODGIFT
 * @author Mr Rony<mrtrandangtrinh@gmail.com>
 */
?>
<?php get_header(); ?>
<div class="main-content row">
	<div class="col-md-9 main-fix list-product">
		<article class="product-title clearfix">
			<div id="breadcrumb" itemprop="breadcrumb">
				<?php get_sidebar('breadcrumb'); ?>
			</div>
		</article> <!--end of article.product-title-->
		<ul class="products clearfix">
			<?php $loop = 0; ?>
            <?php global $product; ?>
			<?php if (have_posts()) : ?>
			<?php while (have_posts()) : the_post(); ?>
			<?php $sText = ( 0 === ($loop % 3) ) ? ' item-loop' : ''; ?>
			<li class="product<?php echo $sText; ?>">
				<?php $loop++; ?>
				<a class="item" href="<?php the_permalink(); ?>">
					<?php if (has_post_thumbnail()) : ?>
							<?php the_post_thumbnail('thumb-products'); ?>
						<?php endif; ?>
					<h3><?php the_title(); ?></h3>
                    <h4 class="price"><?php echo number_format($product->get_price(), 0, '.' , '.'); ?>.000 VNĐ</h4>
					<span class="detail"><?php _e("Xem chi tiết"); ?></span>
				</a>
			</li>
			<?php endwhile; ?>
			<?php endif; ?>
		</ul>
		<div class="pagingbox clearfix"> 
			<?php if (function_exists('wp_pagenavi')) : ?>
				<?php wp_pagenavi(); ?>
			<?php endif; ?>
		</div> <!--end of div.pagingbox-->
	</div>
	<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>